import React from 'react';
import {Form, Radio} from "antd";
import BaseEntity from "type/entity";


interface IProps<T> {
    name: keyof T,
    lastName?: keyof T,
    label?: string
}

const InputRadio = <T extends BaseEntity>(props: IProps<T>) => {
    return (
        <Form.Item<T> name={props.name as any} label={props.label} required={true}>
            <Radio.Group>
                <Radio value={true}>男</Radio>
                <Radio value={false}>女</Radio>
            </Radio.Group>
        </Form.Item>
    );
};

export default InputRadio;